fix(ui): remove unused ads-mobile-sdk dependency#588
Conversation
Remove the transitive ads-mobile-sdk dependency from clerk-android-ui. This dependency was unused (no imports in source code) and caused duplicate class errors when used alongside react-native-google-mobile-ads or any library that depends on play-services-ads-api. Fixes clerk/javascript#8237
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThe pull request removes the Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issuesNo additional unlinked issues identified. The linked issue 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning Review ran into problems🔥 ProblemsTimed out fetching pipeline failures after 30000ms Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
ads-mobile-sdktransitive dependency fromclerk-android-uicom.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk:0.21.0-beta01) was explicitly declared but never imported in any source filereact-native-google-mobile-adsor any library depending onplay-services-ads-api, because both packages contain the samecom.google.android.gms.ads.*classesReproducing the issue
Using
@clerk/expo@3.1.6+react-native-google-mobile-ads@15.8.3, running./gradlew checkDebugDuplicateClassesproduces ~50 duplicate class errors:After this fix, the build passes cleanly.
Test plan
@clerk/expo@3.1.6+react-native-google-mobile-ads@15.8.3)checkDebugDuplicateClassespassesads-mobile-sdkhas zero imports in thesource/ui/srccodebaseads-mobile-sdkFixes clerk/javascript#8237